layui.use(['laypage','form','element', 'laytpl'], function() {
	var laytpl = layui.laytpl;
	var element = layui.element;
	var laypage = layui.laypage;
	var form = layui.form;
	
	// 监听tab
	element.on('tab(demo)', function(data) {
		console.log(data);
		
	});
})